package com.td.module.produce.controller.admin.husbandry.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.td.framework.excel.core.annotations.DictFormat;
import com.td.framework.excel.core.convert.DictConvert;
import lombok.Data;

import java.time.LocalDateTime;


/**
 * 生产管理农事 Excel VO
 *
 * @author 吴佰强
 */
@Data
public class HusbandryExcelVO {

    @ExcelProperty("主键")
    private Long id;

    @ExcelProperty(value = "农事活动", converter = DictConvert.class)
    @DictFormat("produce_husbandry_events") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer husbandryEvents;

    @ExcelProperty("生产信息id")
    private Long infoId;

    @ExcelProperty("计划日期")
    private LocalDateTime planTime;

    @ExcelProperty(value = "执行状态", converter = DictConvert.class)
    @DictFormat("produce_husbandry_execute_status") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer executeStatus;

    @ExcelProperty("执行人id")
    private Long memberId;

    @ExcelProperty("执行时间")
    private LocalDateTime executeTime;

    @ExcelProperty("耗时（时）")
    private Double take;

    @ExcelProperty("农事图片")
    private String husbandryImg;

    @ExcelProperty("创建日期")
    private LocalDateTime createTime;

}
